package liangtWorkSpace.springAll.di.setter.Editory;

import liangtWorkSpace.springAll.di.byName.TextSetterBean;

/**
 * @author liangt
 * @ClassName: TextEditor
 * @title: TextEditor
 * @projectName liangtWorkSpace.springAll.di.Editory
 * @description: TODO
 * @date 2020/10/15 18:03
 */
public class TextEditor {
    private TextSetterBean textSetterBean;
    private String name;
    public TextEditor() {
    }

    public TextSetterBean getTextSetterBean() {
        return textSetterBean;
    }

    public void setTextSetterBean(TextSetterBean textSetterBean) {
        this.textSetterBean = textSetterBean;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setTextBean(TextSetterBean textBean) {
        System.out.println("TextSetterBean  name : "+name );
        this.textSetterBean = textBean;
    }

    public void spellCheck(){
        textSetterBean.check();
    }
}
